<?php
//echo md5(md5('yujinxiang'));exit;
include("../../com.inc.php");
$ac=$GLOBALS['_ac'];
$pw=$GLOBALS['_pw'];
$s = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true")); //票付通
//$s = new SoapClient(null,array("location" => "http://localhost/open/openService/s_insideMX.php","uri" => "www.16u.com?ac_16u=$ac|pw_16u=$pw|auth_16u=true")); //先行
//$s3 = new SoapClient(null,array("location" => "http://localhost/open/openService/pft_insideMX.php","uri" => "www.16u.com?ac_16u=$ac3|pw_16u=$pw3|auth_16u=true"));

//$ordid = '709910';
 $ordid = $_GET['ordernum'];
$concat_id = 1;
$if_pack = 0;
//$xml = $s->Order_Globle_Search("0","0","0","0","{$lTitle}","","$bt","$et","",
//    "","","", $ordid,"","$otel","$orderStatus","{$payStatus}","",1,1,0,
//    111,0,"","","","","","","","",$concat_id, $if_pack,0,0, $contacttel);

$xml=$s->Order_Globle_Search(0,0,0,0,"","","","","","","","",$ordid,"",0,"","","",
    1,0,0,100,"","","","","","","","","","$ordid","1","","");
// $arr = serialize(array($ordid=>'wx_'.date('YmdHis')));
// $res = $s->Remote_Ordernum_Update($arr);
print_r($xml);exit;
$r = $s->PFT_Order_Code(22751,'355905',-1,5814);
print_R($r);exit; 
//$t1    = date('Y-m-d');
// $r=$s->Order_Globle_Search("603602", "5021", "9614", "", "", "", "2014-12-15", "2014-12-15", "", "", "", "", "", "", "12301", "0", "", "", "", "1", "0", "2000", "0", "0", "", "0", "", "0", "", "", "", "0", "0", "0");
// $r = $s->Order_Globle_Search(
// "603602", "", "5021", "9654", "",
 // "", "", "", "", "",
 // "2015-01-01 00:00:00", "2015-01-04 23:59:59" ,"", "", "",
 // "1", "", "", "", "1", 
 // "0", "1000", "0", "0", "",
 // "0", "", "0", "", "",
 // "", "0", "0", "0"
 // );
// echo $r;
 // $result = $s->Order_Globle_Search("", "", "", "", "", "", "$t1", "$t2", "", "", "", "",
     // $order, "", "", "", "", "", "", "1", "0", "100", "0", "0",
     // "", "0", "", "0", "", "", "0", "0", "0", "0");
// echo $result;
// $xml = $s->Dynamic_Price_And_Storage('123954',6834,'2015-01-08',1,1,0,7132);

// $xml = $s->Dynamic_Price_And_Storage('',6989,'2015-01-08',1,1);
// echo $xml,'--';
// $xml = $s->Dynamic_Price_And_Storage('',7887,'2015-01-08',1,1);
// echo $xml,'--';
// $xml = $s->Dynamic_Price_And_Storage('123954',6834,'2015-01-08',1,0,0,7132);//,,2015-01-08,1,0,0,7132
// echo $xml;exit;
$ordernum = $_GET['ordernum'];
$r = $s->Order_Globle_Search("", "", "", "", "", "", "", "", "", "", "", "", $ordernum, "", "", "", "", "", "", "1", "0", "15", "0", "0", "", "0", "", "0", "", "", "", "0", "0", "0");
$r = simplexml_load_string($r);
print_r($r);
// print_r((string)$r->Rec->UUp_type);
// $r= simpleXML_load_string($r);
// foreach( $r as $k){
  // print_r($k);
	// print_r((string)$k->UUcode);
	// echo "<br/>";
	
// }
// exit;
// $order_num = array(457483,457289,456958,456136,454764,454096,453209,452808,451432,451300,450991,450609,450025,449803,449778,445926,443836,
// 443723,442986,438677);
// foreach($order_num as $k){ 
// print_r($k);echo "<br>";

		// $cancel = $s->Order_Change_Pro($k,0,-1,0,0,"","","");
		// echo $k."->".$cancel;
		// echo "<br>";
// }
/*
foreach($r as $k)
{
	if($k->UUremsg ==0)
     {	
	    $order = (string)$k->UUordernum;
		 $resend_sms =$s->reSend_SMS_Global_PL($order,"","");
		 
		 echo $resend_sms;echo "<br/>";
		 
	 }
}*/
?>